<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <!-- 输入框输入值，按回车时输出输入框信息 -->
    <!-- <input type="text" v-model="word" @change="search" placeholder="请输入需要搜索的信息"> -->
    <!-- 按键修饰符 -->
    <!-- <input type="text" v-model="word" @keyup.13="search" placeholder="请输入需要搜索的信息"> -->
    <!-- <input type="text" v-model="word" @keyup.enter="search" placeholder="请输入需要搜索的信息"> -->
    <!-- <input type="text" v-model="word" @keyup.a="search" placeholder="请输入需要搜索的信息"> -->
    <!-- 系统修饰键 -->
    <!-- <input type="text" v-model="word" @keyup.shift="search" placeholder="请输入需要搜索的信息"> -->
    <input type="text" v-model="word" @keyup.alt.67="clear" placeholder="按住 alt + c 清除输入框信息">
    <button @click="search">搜索</button>
  </div>
</body>
<script src="lib/vue.js"></script>
<script>
  new Vue({
    el: '#app',
    data: {
      word: ''
    },
    methods: {
      search () {
        console.log(this.word)
      },
      clear () {
        console.log('clear')
        this.word = ''
      }
    }
  })
</script>
</html>